﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<cludg.Web.ViewModels.LoginModel>" %>

<%@ Import Namespace="cludg.Web.Core.RenderHelpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Вход
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h2>Вход</h2>
	<% Html.EnableClientValidation(); %>
	<% using (Html.BeginForm())
	{ %>
	<%: Html.ValidationSummary(true) %>
	<div>
		<fieldset>
			<%: Html.LoginzaLink("Войти через OpenID", "LoginThirdParty", "Account") %>
			<div class="editor-label">
				<%= Html.LabelFor(m => m.Login) %>
			</div>
			<div class="editor-field">
				<%= Html.TextBoxFor(m => m.Login)%>
				<%= Html.ValidationMessageFor(m => m.Login)%>
			</div>
			<div class="editor-label">
				<%= Html.LabelFor(m => m.Password) %>
			</div>
			<div class="editor-field">
				<%= Html.PasswordFor(m => m.Password) %>
				<%= Html.ValidationMessageFor(m => m.Password) %>
			</div>
			<div class="editor-label">
				<%= Html.CheckBoxFor(m => m.Remember) %>
				<%= Html.LabelFor(m => m.Remember) %>
			</div>
			<p>
				<input type="submit" value="войти" />
			</p>
			<p>
				<%: Html.ActionLink("Забыли пароль?", "ResetPassword") %>
			</p>
		</fieldset>
	</div>
	<%} %>
</asp:Content>
